/**
 * 简单的飞机大战
 * 一个用于练习Qt的小游戏
 * Qt（C++）编写，MinGW-w64编译
 * 作者：Carburn Ashroom
 */

#include <QApplication>
#include <QObject>

#include "mainwindow_help.h"
#include "mainwindow.h"

int main(int argc, char *argv[])
try
{
    QApplication a(argc, argv);
    MainWindow w;
    w.show();
    MainWindow_help w_help {&w};
    w_help.show();
    QObject::connect(&w_help, SIGNAL(close_this()), &w, SLOT(start_game()));
    QObject::connect(&w, SIGNAL(help()), &w_help, SLOT(show()));
    return a.exec();
}
catch (Quit_error) {
    return 0;
}
